package com.gupaoedu.vip.pattern.singleton.hungry;

/**
 * Created by Administrator on 2018/3/18.
 */
public class Hungry {

    private static final Hungry hungry = new Hungry();

    /**
     * 类加载的时候就初始化，执行效率低，内存利用率不高
     * 线程绝对安全，
     *
     * @return
     */

    public static Hungry getInstance(){
        return hungry;
    }
}
